<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
  <head>
    <title>My JSP 'idea.jsp' starting page</title>
	<link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="static/css/wall.css" />
  </head>
  
  <body class="body">
	<%@ include file="top.jsp" %>
  	<div class="container" style="padding-top:60px">
  		<div class="row">
			<jsp:include page="left.jsp">
				<jsp:param value="idea" name="tag"/>
			</jsp:include>
			<div class="span9">
				<div style="margin-top:15px">
					<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0px 0px;">
						<li>
							<i class="icon-fire"></i>
							<a href="idea.jspx"  style="color:black;">想法</a>
						</li>
						<li style="float:right">
							<i class="icon-plus"></i>
							<a href="idea.jspx?m=add"  style="color:black;">发表想法</a>
						</li>
					</ul>
				</div>
				<div class="wall" style="margin-bottom:20px">
				   <c:forEach items="${requestScope.ideaList.result }" var="idea">
					    <blockquote>
					    	<h4><a href="idea.jspx?m=show&id=${idea.id }">${idea.title }</a></h4>
						    <p>${idea.describe}</p>
						    <small>${idea.member.name }发表于${idea.time }</small>
						    <a href="idea.jspx?m=edit&id=${idea.id }"><i class="icon-pencil"></i></a>
						    <a href="idea.jspx?m=del&id=${idea.id }"><i class="icon-trash"></i></a>
					    </blockquote>
				    </c:forEach>
				    
				   <div class="pagination pull-right">
						<ul>
							<li>
								<a href="idea.jspx?p=1">首页</a>
							</li>
							<li class="active">
								<a href="idea.jspx?p=${ideaList.pageNum - 1}">上一页</a>
							</li>
							<li>
								<a href="idea.jspx?p=${ideaList.pageNum + 1}">下一页</a>
							</li>
							<li>
								<a href="idea.jspx?p=${ideaList.totalPages}">尾页</a>
							</li>
						</ul>
					</div>
					<div class="clear"></div>
					
				</div>
			</div>
		</div>
	</div>
  </body>
</html>
